<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GdaRow: GNOME Data Access 5 manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GNOME Data Access 5 manual">
<link rel="up" href="data_models.html" title="Data handling">
<link rel="prev" href="GdaDataModelArray.html" title="GdaDataModelArray">
<link rel="next" href="GdaDataModelLdap.html" title="GdaDataModelLdap">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GdaRow.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GdaRow.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GdaRow.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="data_models.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GdaDataModelArray.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GdaDataModelLdap.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GdaRow"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GdaRow.top_of_page"></a>GdaRow</span></h2>
<p>GdaRow — Individual row of a <a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a> object</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GdaRow.stability-level"></a><h2>Stability Level</h2>
<a href="http://foldoc.org/Stable"><span class="acronym">Stable</span></a>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="GdaRow.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GdaRow.html" title="GdaRow"><span class="returnvalue">GdaRow</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaRow.html#gda-row-new" title="gda_row_new ()">gda_row_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaRow.html#gda-row-get-length" title="gda_row_get_length ()">gda_row_get_length</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="returnvalue">GValue</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaRow.html#gda-row-get-value" title="gda_row_get_value ()">gda_row_get_value</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaRow.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody><tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GdaRow.html#GdaRow--nb-values" title="The “nb-values” property">nb-values</a></td>
<td class="property_flags">Write</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaRow.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody><tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GdaRow.html#GdaRow-struct" title="struct GdaRow">GdaRow</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaRow.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> GdaRow
</pre>
</div>
<div class="refsect1">
<a name="GdaRow.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;virtual/gda-ldap-connection.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="GdaRow.description"></a><h2>Description</h2>
<p>The <a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a> object uses <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a> to store each row of data. Each <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a> has the same
number of <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> values (equal to the number of columns of the data model).</p>
<p>As a side note, the <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a> object is also used internally by the implementation of the data models returned
when executing a SELECT statement.</p>
</div>
<div class="refsect1">
<a name="GdaRow.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gda-row-new"></a><h3>gda_row_new ()</h3>
<pre class="programlisting"><a class="link" href="GdaRow.html" title="GdaRow"><span class="returnvalue">GdaRow</span></a> *
gda_row_new (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);</pre>
<p>Creates a <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a> which can hold <em class="parameter"><code>count</code></em>
 <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> values.</p>
<div class="refsect3">
<a name="gda-row-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>count</p></td>
<td class="parameter_description"><p>number of <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> in the new <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-row-new.returns"></a><h4>Returns</h4>
<p> a newly allocated <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a> object.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-row-get-length"></a><h3>gda_row_get_length ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
gda_row_get_length (<em class="parameter"><code><a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a> *row</code></em>);</pre>
<div class="refsect3">
<a name="gda-row-get-length.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>row</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-row-get-length.returns"></a><h4>Returns</h4>
<p> the number of columns that the <em class="parameter"><code>row</code></em>
has.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-row-get-value"></a><h3>gda_row_get_value ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="returnvalue">GValue</span></a> *
gda_row_get_value (<em class="parameter"><code><a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a> *row</code></em>,
                   <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num</code></em>);</pre>
<p>Gets a pointer to a <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> stored in a <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a>.</p>
<p>This is a pointer to the internal array of values. Don't try to free
or modify it (modifying is reserved to database provider's implementations).</p>
<div class="refsect3">
<a name="gda-row-get-value.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>row</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>num</p></td>
<td class="parameter_description"><p>field index.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-row-get-value.returns"></a><h4>Returns</h4>
<p>a pointer to the <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> in the position <em class="parameter"><code>num</code></em>
of <em class="parameter"><code>row</code></em>
. </p>
<p><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>][<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="GdaRow.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GdaRow-struct"></a><h3>struct GdaRow</h3>
<pre class="programlisting">struct GdaRow;</pre>
</div>
</div>
<div class="refsect1">
<a name="GdaRow.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GdaRow--nb-values"></a><h3>The <code class="literal">“nb-values”</code> property</h3>
<pre class="programlisting">  “nb-values”                <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>Number of values in the row.</p>
<p>Owner: GdaRow</p>
<p>Flags: Write</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 1</p>
</div>
</div>
<div class="refsect1">
<a name="GdaRow.see-also"></a><h2>See Also</h2>
<p><a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>